From: Mike Baker Date: Fri, 1 Dec 2006 22:31:11 +0000 (+0000) Subject: Ignore false button events generated by switch gpio use X-Git-Tag: whiterussian_0.9~51 X-Git-Url: http://git.openwrt.org/%22https:/collectd.org///%22https:/collectd.org/?a=commitdiff_plain;h=b39d4d7516e9bcf493fc06c20e0955c219bff885;p=openwrt%2Fsvn-archive%2Fopenwrt.git Ignore false button events generated by switch gpio use SVN-Revision: 5687 --- diff --git a/openwrt/target/linux/package/diag/src/diag.c b/openwrt/target/linux/package/diag/src/diag.c index e2e772c490..0b445f8c22 100644 --- a/openwrt/target/linux/package/diag/src/diag.c +++ b/openwrt/target/linux/package/diag/src/diag.c @@ -584,6 +584,8 @@ static void button_handler(int irq, void *dev_id, struct pt_regs *regs) changed = platform.button_polarity ^ in; platform.button_polarity = in; + changed &= ~sb_gpioouten(sbh, 0, 0); + for (b = platform.buttons; b->name; b++) { struct event_t *event;